/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __BUTTON_H__
#define __BUTTON_H__

/* Includes ------------------------------------------------------------------*/
#include "stm8s.h"
#include "define.h"

/* Exported types ------------------------------------------------------------*/
#define BUTTON_ACTIVE  0x01

/* Exported constants --------------------------------------------------------*/
#if defined (DAU_MAY_1)
    #define BUTTON_PORT    (GPIOC)
    #define BUTTON_PINS    (GPIO_PIN_4)
#endif
#if defined (DAU_MAY_2)
    #define BUTTON_PORT    (GPIOB)
    #define BUTTON_PINS    (GPIO_PIN_5)
#endif
/* Exported macro ------------------------------------------------------------*/
/* Exported functions ------------------------------------------------------- */

void Button_Init(void);
void Button_RunOne(void);

#endif /* __BUTTON_H__ */

